wxMDIParentFrame
Table of Contents

An MDI (Multiple Document Interface) parent frame is a window which can contain MDI


child frames in its own 'desktop'. It is a convenient way to avoid window clutter, and is used in many popular Windows applications, such as Microsoft Word(TM). There may be multiple MDI parent frames in a single application, but this probably only makes sense within programming development environments. Child frames may be of class wxMDIChildFrame (contained within the parent frame) or wxFrame (shown as a top-level frame). An MDI parent frame always has a wxMDIClientWindow associated with it, which is the parent for MDI client frames. This client window may be resized to accommodate non-MDI windows, as seen in Microsoft Visual C++ (TM) and Microsoft Publisher (TM), where a documentation window is placed to one side of the workspace. MDI remains popular despite dire warnings from Microsoft itself that MDI is an obsolete user interface style. The implementation is native in Windows, and simulated under Motif. Under Motif, the child window frames will often have a different appearance from other frames because the window decorations are simulated. Creation parameters:

  • proc activate_next_mdi( atom parent_frame )   
  • proc activate_prev_mdi( atom parent_frame )   
  • proc arrange_mdi_icons( atom parent )   
  • proc cascade_mdi( atom parent )   
  • func get_active_mdi_child( atom parent_frame )   
  • func get_client_window( atom parent_frame )   
  • func get_mdi_window_menu( atom parent_frame )   Using menus
  • proc tile_mdi( atom parent )     
     
    Parent Topics:
  • Classes
  • Controls
  • wxFrame  
     
    Subtopics:
  • wxMDIChildFrame
  • wxMDIClientWindow

    wxMDIParentFrame
    Table of Contents

    [proc]
    activate_next_mdi
    ( atom parent_frame )

    Category: wxMDIParentFrame

    See Also: activate_prev_mdi, arrange_mdi_icons, cascade_mdi, get_active_mdi_child, get_client_window, get_mdi_window_menu, tile_mdi


    wxMDIParentFrame
    Table of Contents

    [proc]
    activate_prev_mdi
    ( atom parent_frame )

    Category: wxMDIParentFrame

    See Also: activate_next_mdi, arrange_mdi_icons, cascade_mdi, get_active_mdi_child, get_client_window, get_mdi_window_menu, tile_mdi


    wxMDIParentFrame
    Table of Contents

    [proc]
    arrange_mdi_icons
    ( atom parent )

    Category: wxMDIParentFrame

    Arranges any iconized (minimized) MDI child windows

    See Also: activate_next_mdi, activate_prev_mdi, cascade_mdi, get_active_mdi_child, get_client_window, get_mdi_window_menu, tile_mdi


    wxMDIParentFrame
    Table of Contents

    [proc]
    cascade_mdi
    ( atom parent )

    Category: wxMDIParentFrame

    Arranges the MDI child windows in a cascade.

    See Also: activate_next_mdi, activate_prev_mdi, arrange_mdi_icons, get_active_mdi_child, get_client_window, get_mdi_window_menu, tile_mdi


    wxMDIParentFrame
    Table of Contents

    [func]
    get_active_mdi_child
    ( atom parent_frame )

    Category: wxMDIParentFrame

    See Also: activate_next_mdi, activate_prev_mdi, arrange_mdi_icons, cascade_mdi, get_client_window, get_mdi_window_menu, tile_mdi


    wxMDIParentFrame
    Table of Contents

    [func]
    get_client_window
    ( atom parent_frame )

    Category: wxMDIParentFrame

    See Also: activate_next_mdi, activate_prev_mdi, arrange_mdi_icons, cascade_mdi, get_active_mdi_child, get_mdi_window_menu, tile_mdi


    wxMDIParentFrame
    Table of Contents

    [func]
    get_mdi_window_menu
    ( atom parent_frame )

    Using menus

    Category: wxMDIParentFrame

    This function is Windows only. Under Linux or FreeBSD, it will return 0.

    See Also: activate_next_mdi, activate_prev_mdi, arrange_mdi_icons, cascade_mdi, get_active_mdi_child, get_client_window, tile_mdi


    wxMDIParentFrame
    Table of Contents

    [proc]
    tile_mdi
    ( atom parent )

    Category: wxMDIParentFrame

    Arranges the MDI child windows in a tile pattern.

    See Also: activate_next_mdi, activate_prev_mdi, arrange_mdi_icons, cascade_mdi, get_active_mdi_child, get_client_window, get_mdi_window_menu